# EVENT_TASK_STAGE_COMPLETE {
#	quest::say("complete");
#	quest::say(quest::lasttaskinset(500));
#}

sub EVENT_TARGET_CHANGE {
	#quest::say("complete");
	#$client->Message(15, "active " . quest::activespeakactivity(500));
	#quest::emote("active " . quest::istaskactivityactive(500,5));
}

sub EVENT_TASK_STAGE_COMPLETE{
  if ($task_id == 223 && $activity_id == 4){ #Pray for Life
    $client->Message(15,"Good job out there today. Your primary duty was simply to patrol, but when the going got tough, you got fighting! That\'s the kind of spirit that more soldiers should have. Heck, you may even be ready for command some day. Not today, but some day. Maybe. In any case, here\'s part of your bounty for mopping that mess up today. Keep it up!");
  }
  if ($task_id == 224 && $activity_id == 2){ #Time for Bed
    $client->Message(15,"Sadly, you couldn\'t find any plots of land that were suitable for living, but don\'t fret. It wasn\'t your fault, just the fault of overused land that hasn\'t been taken care of nearly well enough. In any case, here\'s your finder\'s fee, even though you didn\'t exactly find anything. Your services may be called upon again soon, and if they are, try not to disappoint, okay?");
  }
  if ($task_id == 225 && $activity_id == 2){ #Ahoy, Ye Bony Mate
    $client->Message(15,"It looks like you made an impression on the other hunters and you won! They\'re more than excited about asking you along for their next hunt. Here is your prize!");
  }
  if ($task_id == 226 && $activity_id == 2){ #Brains Over Brawn
    $client->Message(15,"You really are on the path to becoming extraordinary. Everyone believed the title you donned was fictional, but you really are almost worthy to hold the title. Here\'s your bounty, and who knows? If you keep up the good work, there may be more bounties for you to collect in the near future.");
  }
  if ($task_id == 227 && $activity_id == 4){ #Don't Be Scared
    $client->Message(15,"When you\'re working in extermination, it\'s sometimes hard for others to understand or even accept the skills you need. You, on the other hand, show a great respect for the skills involved and seem to be a natural. There\'s certainly room for someone of your caliber within the extermination industry, so keep it in mind when you\'re looking for your next job. Here\'s a small trinket as proof of completion of this course.");
  }
  if ($task_id == 228 && $activity_id == 4){ #Gathering Skin
    $client->Message(15,"The tale of the wise man urged you to do great things. It\'s curious to have to do terrible things to achieve greatness. Even the calm of enlightenment cannot always be achieved quietly, and you have proven that you are versatile enough to seek out the truth. Continue your training and some day, you too may be able to have your own students who look to you for guidance and answers. And even though material wealth is of little concern to someone along your path, the rest of the world still lives by it, Take this small offering and be well.");
  }
  if ($task_id == 229 && $activity_id == 4){ #Underhanded Exploration
    $client->Message(15,"Well, unfortunately, you didn\'t come in first, but you were close! You did an excellent job and nearly beat all the competition. Don't give up. You\'ll do much better next time! You did do quite well though, so here\'s your prize money. Better luck next time!");
  }
  if ($task_id == 230 && $activity_id == 5){ #Find the Ore
    $client->Message(15,"As an elite expeditionary unit memeber, you have preformed your duties well. For that, you are recieving a small stipend for your work. Keep up the good work and always look toward the future and the death of any infidels that block your path.");	
  }
}